/**
 * 
 */
package t4j.exceptions;

/**
 * @author sz
 * 
 *         create time：2012-11-15
 */
public class ExceptionMethods {
	public static void main(String[] args) {

		try{
			throw new Exception("My Exception");
		}catch(Exception e){
			System.out.println("Caught Exception");
			System.out.println("getMessage():" + e.getMessage());
			System.out.println("getLocalizedMessage():" + e.getLocalizedMessage());
			System.out.println("toString():" + e);
			System.out.println("printStackTrace():");
			e.printStackTrace(System.out);
		}
	}
}
